package com.per.mybootall.dao;

import com.per.mybootall.pojo.User;
import org.springframework.stereotype.Component;


public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByUsernameforUser(String username);

    int selectIdByname(String username,String password);

    int selectRoleById(String name);

    User selectAll();

    User selectAllForUsername(String username);
}